package com.carryking.smart.rpc.spring;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextClosedEvent;

/**
 * Created by jincarry on 2018/1/11.
 */
@Slf4j
public class ServiceSpringCloseListener implements ApplicationListener<ContextClosedEvent> {
    public void onApplicationEvent(ContextClosedEvent contextClosedEvent) {
      ServiceSpringInitListener.close();
    }
}
